const express = require('express');
const router = express.Router();
const codeGeneratorController = require('../controllers/codeGeneratorController');
const { verifyToken } = require('../middleware/authMiddleware');

// 所有路由都需要认证
router.use(verifyToken);

// 生成C语言头文件
router.get('/:id/c-header', codeGeneratorController.generateCHeader);

// 生成C语言源文件
router.get('/:id/c-source', codeGeneratorController.generateCSource);

module.exports = router;
